import request from '@/utils/request'
import service from "../../utils/request";

// 查询代理商列表
export function listAlly(data) {
  return request({
    url: '/console/ally',
    method: 'post',
    data: data
  })
}


// 根据id查询代理商信息
export function getAllyById(id) {
  return service.get('/console/ally/'+ id)
}

// 新增代理商
export function addAlly(data) {
  return service.post('/console/ally/save',data)
}

// 修改代理商
export function updateAlly(data) {
  return service.post('/console/ally/update',data)
}

// 修改代理商
export function deleteAlly(data) {
  return service.get('/console/ally/delete?id='+ data)
}
